<template>
  <div>
    <h1 @click="toHome">Add页面(to Home)</h1>
  </div>
</template>

<script setup>
import router from "../routers/router.js";

const toHome = () => {
  router.push('/')
}

// 路径传参： useRouter.query
// router.push ('/xxx/${xxx}')
// 获取路由参数： useRoute.params
// router.push (name, params)
</script>

<style scoped>

</style>
